<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/report/teamachievement/index/list";
	document.form1.submit();
}
$(function() {
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
function doExport(type) {
	document.form1.action = "${path}/report/base/index/yearachievementExporter?type="+type;
	document.form1.submit();
}
</script>
		<style>
tr td {
	text-align: center;
	vertical-align: middle;
}
</style>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						团队业绩查询
						<div class="tools-btn" style="width: 250px;">
							<%--<a href="####" onclick="doExport('pdf')"><span> <img
										src="${path}/statics/images/dcpdf.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出PDF</span> </a>
							<a href="####" onclick="doExport('excel')"><span> <img
										src="${path}/statics/images/dcexcel.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出EXCEL</span> </a>
							--%><a href="####" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tbody>
									<tr>
										<td align="right">
											业绩时间：
										</td>
										<td>
											<input type="text" readonly="readonly" id="reportdate"
												name="yearmonth" value="${yearmonth}" class="input-txt"
												onclick="WdatePicker({dateFmt:'yyyy年MM月dd日',realDateFmt:'yyyyMMdd',vel:'startyearmonth'})" />
										</td>
										<td align="right">
											<input name="Input" type="button" class="linkbtn2"
												value="查  询" onclick="doQuery()" />
										</td>
								</tbody>
							</table>
						</div>
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px; overflow: scroll;">
							<table id="mytable" width="100%" cellspacing="0" cellpadding="0"
								border="1" id="dtable"
								style="border: 1px ! import; overflow: scroll;">
								<tbody>
									<tr height="19" style="height: 14.25pt">
										<td width="977" height="19"
											style="height: 14.25pt; width: 736pt" class="xl104"
											colspan="13">
											${uesrName}直辖组${year}年(${month}月1日--${month}月${day}日)月度业绩表
										</td>
									</tr>
									<tr height="18"
										style="mso-height-source: userset; height: 14.1pt">
										<td width="53" height="37"
											style="height: 28.35pt; width: 40pt" class="xl106"
											rowspan="2">
											统计
										</td>
										<td style="border-left: none" class="xl105" colspan="3">
											第一周预收保费(${firWeek})
										</td>
										<td style="border-left: none" class="xl105" colspan="3">
											第二周预收保费(${secWeek})
										</td>
										<td style="border-left: none" class="xl105" colspan="3">
											第三周预收保费(${thrWeek})
										</td>
										<td style="border-left: none" class="xl105" colspan="3">
											第四周预收保费(${lastWeek})
										</td>
									</tr>
									<tr height="19"
										style="mso-height-source: userset; height: 14.25pt">
										<td height="19" style="height: 14.25pt;" class="xl97">
											经理/总监组
										</td>
										<td style="" class="xl97">
											标保
										</td>
										<td style="" class="xl97">
											价保
										</td>
										<td style="" class="xl97">
											经理/总监组
										</td>
										<td style="" class="xl97">
											标保
										</td>
										<td style="" class="xl97">
											价保
										</td>
										<td style="" class="xl97">
											经理/总监组
										</td>
										<td style="" class="xl97">
											标保
										</td>
										<td style="" class="xl97">
											价保
										</td>
										<td style="" class="xl97">
											经理/总监组
										</td>
										<td style="" class="xl97">
											标保
										</td>
										<td style="" class="xl97">
											价保
										</td>
									</tr>
									<c:set var="i" value="1"></c:set>
									<c:forEach items="${infoList}" var="list">
										<tr height="18">
											<c:if test="${i==1}">
												<c:set var="i" value="2"></c:set>
												<td rowspan="${fn:length(infoList)}">
													<br>
												</td>
											</c:if>
											<c:if test="${i!=1}">
												<td width="73" style="width: 55pt">
													${list.FIRAPPLICANTNAME}
												</td>
												<td width="73" style="width: 55pt">
													${list.FIRPROSTANDARDPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.FIRVALUEPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.SECAPPLICANTNAME}
												</td>
												<td width="73" style="width: 55pt">
													${list.SECPROSTANDARDPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.SECVALUEPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.THRAPPLICANTNAME}
												</td>
												<td width="73" style="width: 55pt">
													${list.THRPROSTANDARDPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.THRVALUEPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.FORAPPLICANTNAME}
												</td>
												<td width="73" style="width: 55pt">
													${list.FORPROSTANDARDPREM}
												</td>
												<td width="73" style="width: 55pt">
													${list.FORVALUEPREM}
												</td>
											</c:if>
										</tr>
									</c:forEach>

									<tr height="18" style="height: 13.5pt">
										<td width="72" height="216"
											style="height: 162.0pt; width: 54pt" class="xl8330202"
											rowspan="12">
											合计
										</td>
										<td rowspan="3">
											本周件数：${firCountAll}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周受理价保：${firSumValuePrem}
											<br>
										</td>
										<td rowspan="3">
											本周件数：${secCountAll}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周受理价保：${secSumValuePrem}
											<br>
										</td>
										<td rowspan="3">
											本周件数：${thrCountAll}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周受理价保：${thrSumValuePrem}
											<br>
										</td>
										<td rowspan="3">
											本周件数：${lastCountAll}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周受理价保：${lastSumValuePrem}
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td width="144" height="36"
											style="height: 27.0pt; width: 108pt" class="xl8330202"
											rowspan="2" colspan="2">
											本周预收回单：${firCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周预收回单：${secCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周预收回单：${thrCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周预收回单：${lastCountPolicy}
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td height="54" style="height: 40.5pt; border-top: none"
											class="xl8430202" rowspan="3">
											本周实动率：${firActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											本周实动率：${secActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											本周实动率：${thrActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											本周实动率：${lastActivePersent}%
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td width="144" height="36"
											style="height: 27.0pt; width: 108pt" class="xl8330202"
											rowspan="2" colspan="2">
											本周回单率：${firPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周回单率：${secPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周回单率：${thrPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本周回单率：${lastPolicyPersent}%
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td height="54" style="height: 40.5pt; border-top: none"
											class="xl8430202" rowspan="3">
											一周件数：${firCountAll}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											一周受理价保：${firSumValuePrem}
											<br>
										</td>
										<td style="border-top: none" rowspan="3">
											两周件数：${perSecCountValuePrem}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											两周受理价保：${perSecSumValuePrem}
											<br>
										</td>
										<td style="border-top: none" rowspan="3">
											三周件数：${perThrCountValuePrem}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											三周受理价保：${perThrSumValuePrem}
											<br>
										</td>
										<td style="border-top: none" rowspan="3">
											本月件数：${perLastCountValuePrem}
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本月受理价保：${perLastSumValuePrem}
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td width="144" height="36"
											style="height: 27.0pt; width: 108pt" class="xl8330202"
											rowspan="2" colspan="2">
											一周预收回单：${firCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											两周预收回单：${perSecCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											三周预收回单：${perThrCountPolicy}
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本月预收回单：${perLastCountPolicy}
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td height="54" style="height: 40.5pt; border-top: none"
											class="xl8430202" rowspan="3">
											一周实动率：${firActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											两周实动率：${perSecActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											三周实动率：${perThrActivePersent}%
										</td>
										<td style="border-top: none" rowspan="3">
											本月实动率：${perLastActivePersent}%
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
										<td width="144" height="36"
											style="height: 27.0pt; width: 108pt" class="xl8330202"
											rowspan="2" colspan="2">
											一周回单率：${firPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											两周回单率：${perSecPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											三周回单率：${perThrPolicyPersent}%
											<br>
										</td>
										<td width="144" style="width: 108pt" rowspan="2" colspan="2">
											本月回单率：${perLastPolicyPersent}%
											<br>
										</td>
									</tr>
									<tr height="18" style="height: 13.5pt">
									</tr>


								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
